{include file="public/head" /}
<title>发布权限管理</title>
</head>

<body>
<div id="right_ctn">
    <div class="right_m">
        <div class="hy_list">
            <div class="box_t">
                <span class="name">发布者权限管理</span>
                <!--当前位置-->
                <div class="position">
                    <a><img src="__STATIC__/admin/images/icon5.png" alt=""/></a>
                    <a href="{:url('admin/Index/index')}" target="_top">首页</a>
                    <span><img src="__STATIC__/admin/images/icon3.png" alt=""/></span>
                    <a href="">用户管理</a>
                    <span><img src="__STATIC__/admin/images/icon3.png" alt=""/></span>
                    <a href="{:url('admin/NewsmakerController/index')}">发布者权限管理</a>
                </div>
                <!--当前位置-->
            </div>
            <div class="space_hx">&nbsp;</div>
            <div class="xjhy" style="padding:0px;">
                <div class="tabBox_t">
                    <div class="tabBox">
                      <ul class="tabNav">
                        <li class="now"><span><a href="{:url('admin/NewsmakerController/index')}">发布者信息</a></span></li>
                        <li><span><a href="{:url('admin/NewsmakerController/add')}">添加发布者</a></span></li>
                      </ul>
                        <div class="tabCont" style="display:block;">
                            <form action="{:url('admin/NewsmakerController/index')}" method="post">
                                <div class="form-group form-inline">
                                    <div class="form-group">
                                        关键字：
                                        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}">
                                    </div>
                                    <input type="submit" class="btn btn-primary" value="搜索"/>
                                    <a class="btn btn-danger" href="{:url('admin/NewsmakerController/index')}">清空</a>
                                </div>
                            </form>
                          <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>姓名</th>
                                    <th>所属部门</th>
                                    <th>岗位</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                             {php}$status = array("0"=>"暂停赋权","1"=>"已赋权");{/php}
                            <tbody>
                            {volist name="newsList" id="vo"}
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.name}</td>
                                    <td>{$vo.dep}</td>
                                    <td>{$vo.job}</td>
                                    <td>{$status[$vo['status']]}</td>
                                    <td>
                                        {neq name="vo.status" value="1"}
                                        <a class="label label-info" onclick="Dialog({$vo['id']},'enable','开启权限')" href="javascript:void(0);">开启权限</a>
                                        {else/}
                                        <a class="label label-warning" onclick="Dialog({$vo['id']},'disable','暂停权限')" href="javascript:void(0);">暂停赋权</a>
                                        {/neq}
                                        <a class="label label-danger" onclick="Dialog({$vo['id']},'delete','删除')" href="javascript:void(0);">删除</a>
                                    </td>
                                </tr>
                            {/volist}
                            </tbody>
                          </table>
                          <div class="pagination">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/admin/js/dialog-layer.js"></script>
</body>
</html>
